package com.yc;

import feign.Param;
import feign.RequestLine;

import java.util.List;

/**
 * @ClassName a
 * @since: 2023/8/23 16:31
 * @auth: kirito
 * @description:
 **/
public interface GitHub {
    // 传入的参数后可以拼接成url: https://api.github.com/repos/OpenFeign/feign/contributors
    @RequestLine("GET /repos/{owner}/{repo}/contributors")
    List<Contributor> contributors(@Param("owner") String owner, @Param("repo") String repo);
}